home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / DOCS / ST_GUIDE.PR / SYSTEM.TXT < prev    next >
Encoding:
Text File  |  2010-01-01  |  5.6 KB  |  118 lines

  1. PRT_LINE x1k1
  2.                                  ╔════════════════╗
  3.                                  ║ SYSTEM VECTORS ║
  4. ╔═════════╤═════════╤════════════╩════════════════╩════════════════════════════╗
  5. ║Address $│ Vector# │   Vectors                                                ║
  6. ╟─────────┼─────────┼──────────────────────────────────────────────────────────╢
  7. ║ 100-13C │   64-79 │   MC68901                                                ║
  8. ╟─────────┼─────────┼──────────────────────────────────────────────────────────╢
  9. ║     380 │         │   valid if = $12345678                                   ║
  10. ║ 384-3A0 │         │   D0-D7                                                  ║
  11. ║ 3A4-3BC │  Crash  │   A0-A6                                                  ║
  12. ║     3C0 │         │   SSP                                                    ║
  13. ║     3C4 │   Area  │   #Vector in the 1rst byte and address of exception      ║
  14. ║     3C8 │         │   USP                                                    ║
  15. ║ 3CC-3E8 │         │   16 words of the supervisor stack                       ║
  16. ╚═════════╧═════════╧══════════════════════════════════════════════════════════╝
  17.                                 ╔══════════════════╗
  18.                                 ║ SYSTEM VARIABLES ║
  19. ╔═════════╤═════════╤═══════════╩══════════════════╩═══════════════════════════╗
  20. ║Address $│  Size   │  Useful System Variables                                 ║
  21. ╟─────────┼─────────┼──────────────────────────────────────────────────────────╢
  22. ║     426 │    L    │  valids reset vector if = $31415926                      ║
  23. ║     42A │    L    │  reset vector                                            ║
  24. ║     42E │    L    │  RAM size                                                ║
  25. ║     432 │    L    │  user memory bottom                                      ║
  26. ║     436 │    L    │  user memory top                                         ║
  27. ║     444 │    W    │  verify flag for disk writing                            ║
  28. ║     452 │    W    │  Vertical BLanking flag                                  ║
  29. ║     466 │    L    │  Vertical BLanking counter                               ║
  30. ║     454 │    W    │  Vertical BLanking list length                           ║
  31. ║     456 │    L    │  Vertical BLanking list pointer                          ║
  32. ║     484 │    B    │  keyboard options(b0=click  b1=repeat  b2=bell  b3=shift)║
  33. ║     4BA │    L    │  200 Hz counter                                          ║
  34. ║     4EE │    W    │  screen copy (-1:enable 0:screen copy 1-...:disable)     ║
  35. ╚═════════╧═════════╧══════════════════════════════════════════════════════════╝
  36.                        ┌───────────────────┐
  37.                        │ EXCEPTION DRIVERS │
  38.                        └───────────────────┘
  39. Reset SP              = not used
  40. Reset PC              = reset instruction
  41.                         use reset vector if valid (return by A6)
  42.                         initialize periferal chips
  43.                         initialize BIOS
  44.                         execute ROM-Pack programs
  45.                         initialize TOS
  46.                         execute boot sector
  47.                         execute reset programs
  48.                         execute \AUTO\*.PRG
  49.                         execute Desktop program
  50.  
  51. Bus Error             = fill crash area , draw bombs and return to desktop
  52.  
  53. Address Error         = fill crash area , draw bombs and return to desktop
  54.  
  55. Illegal Instructions  = fill crash area , draw bombs and return to desktop
  56.  
  57. DIV by 0 Instruction  = do nothing
  58.  
  59. CHK Instruction       = fill crash area , draw bombs and return to desktop
  60.  
  61. TRAPV Instruction     = fill crash area , draw bombs and return to desktop
  62.  
  63. Privilege Violation   = fill crash area , draw bombs and return to desktop
  64.  
  65. Trace                 = fill crash area , draw bombs and return to desktop
  66.  
  67. $Axxx Instructions    = used for graphism
  68.  
  69. $Fxxx Instructions    = used
  70.  
  71. Non Reseted Interrupt = fill crash area , draw bombs and return to desktop
  72.  
  73. Parasit Interrupt     = fill crash area , draw bombs and return to desktop
  74.  
  75. Horizontal BLanking   = set the IPL mask to %011 to avoid this interrupt
  76.  
  77. Vertical BLanking     = inc $466 , change screen if necessary , test disk change
  78.                         execute VBL routines if ($452)<>0 (registers are saved)
  79.                         test for hardcopy
  80.  
  81. TRAP Instruction      =  1 used by  TOS ,  2 used by GEM-VDI & GEM-AES
  82.                         13 used by BIOS , 14 used by XBIOS
  83.  
  84. PRNT                  = fill crash area , draw bombs and return to desktop
  85.  
  86. AUXI DCD              = fill crash area , draw bombs and return to desktop
  87.  
  88. AUXI CTS              = fill crash area , draw bombs and return to desktop
  89.  
  90. BLIT                  = fill crash area , draw bombs and return to desktop
  91.  
  92. TIME D                = used for auxiliary
  93.  
  94. TIME C                = used for 200 Hz interrupt and 50 Hz
  95.                         timer 200 Hz
  96.                         sound,click 50 Hz
  97.                         EVNT_TIME GEM 50 Hz
  98.  
  99. IKBD/MIDI             = used for this devices
  100.  
  101. DISK                  = fill crash area , draw bombs and return to desktop
  102.  
  103. TIME B                = fill crash area , draw bombs and return to desktop
  104.  
  105. AUXI TE               = do nothing
  106.  
  107. AUXI TRE              = transmit a character
  108.  
  109. AUXI RE               = do nothing
  110.  
  111. AUXI RRF              = receive a character
  112.  
  113. TIME A                = fill crash area , draw bombs and return to desktop
  114.  
  115. AUXI RI               = fill crash area , draw bombs and return to desktop
  116.  
  117. SCRN MM               = reset
  118.